﻿<!DOCTYPE html>
<html>
<head>
    <title>top.html</title>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
   
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: 'frm.ashx?type=getUserInfo',
                type: 'post',
                data: '',
                dataType: 'json',
                success: function (r) {
                    $('#spanUser').html(r[0].strRealName);
                }, error: function (r) {

                }
            });
        });

        function BackUpDB() {
            $.ajax({
                url: 'frm.ashx?type=BackUpDB',
                type: 'post',
                data: '',
                dataType: 'text',
                success: function (r) {
                    alert("备份数据库成功!");
                }, error: function (r) {
                    alert("备份数据库成功!");
                }
            });
        }

//        function BackUpDB() {
//            window.open('backupdb.aspx', 'backupdb', 'height=100,width=300,top=50,left=200,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=yes, status=no');
//        }
    </script>
    <style type="text/css">
        *
        {
            padding: auto;
            margin: auto;
        }
        .pagehead
        {
            padding:5px 0px;
            width: 100%;
            height: 45px;
            background: #0a408a;
            box-shadow: inset 0 0 10px #2f4f4f;
        }
        .pagehead_title
        {
            font-family: Arial;
            font-size: 30pt;
            font-weight: bold;
            overflow: hidden;
            color: #f8c301;
        }
        .pagehead ul
        {
            float: right;
            list-style: none;
        }
        .pagehead ul li
        {
            text-decoration: none;
            float: left;
            overflow: hidden;
            width: 60px;
            text-align: center;
        }
        .pagehead ul li a
        {
            /* 必须是相对定位  */
            position: relative;
            display: block;
            width: 50px;
            height: 25px;
            padding-top: 5px;
            text-align: center;
            font-family: Arial;
            font-size: 14px;
            font-weight: bold;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-decoration: none;
            cursor: pointer;
            color: #111;
            background-color: #7d9ec0;
            border-radius: 5px;
        }
        .pagehead ul li a:hover
        {
            background-color: #99bbff;
            color: #efefef;
        }
        .pagehead ul li a:hover:active
        {
            background-color: #aaa;
        }
     
    </style>
</head>
<body scoll=no>
    <div class="pagehead">
        <table style="width: 100%">
            <tr>
                <td style="text-align: left; width: 25%;">
                  
                    <table style="float: left; margin-top: -10px; padding-left:20px; font-size: 14px; color: #efefef;">
                    <tr><td> <span>网点:</span><span>总部</span></td></tr>
                     <tr><td> <span>用户:</span><span id="spanUser"></span></td></tr>
                    </table>
                </td>
                <td style="text-align: center; width: 50%;">
                    <div style="margin-top: -10px;">
                     
                           <span class="pagehead_title">河南舆兴粮食银行</span>
                    </div>
                </td>
                <td style="text-align: center; width: 25%;">
                    <div style="float: right; margin-top: -10px;">
                        <ul>
                            <li class="nav1"><a href="frmmain.htm" target="main">主页</a> </li>
                            <li class="nav4"><a href="#" onclick="BackUpDB()">备份</a></li>
                            <li class="nav6"><a href="../default.aspx?Type=loginOut" target="_parent">退出</a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>

    
    <div style="display: none">
        <input type="text" id="frmWBID" />
        <input type="text" id="frmID" />
    </div>
</body>
</html>
